package com.csap.framework.oauth2.impl;

import com.csap.framework.oauth2.cache.StrategyType;
import com.csap.framework.oauth2.model.RegionResponse;
import org.springframework.stereotype.Component;

/**
 * 数据层
 *
 * @Author ycf
 * @Date 2022/3/10 4:49 PM
 * @Version 1.0
 */
@Component
public class EleRegionServiceImpl implements DataFunction<RegionResponse> {

    @Override
    public RegionResponse apply(Long aLong) {
        return RegionResponse.builder().regionId(12L).build();
    }

    @Override
    public StrategyType strategyType() {
        return StrategyType.REGION;
    }
}
